package com.yx.robot.bean.robot;

import android.graphics.PointF;

public class Room extends CleanAreaInfo implements Clear, Cloneable {
    private PointF center;
    private String alias;

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public PointF getCenter() {
        return center;
    }

    public void setCenter(PointF center) {
        this.center = center;
    }

    @Override
    public void clear() {
        center = null;
    }

    @Override
    public Room clone() {
        Room room = (Room) super.clone();
        room.center = new PointF(center.x, center.y);        //深拷贝
        return room;
    }
}

